import Vue from 'vue';
import Router from 'vue-router'
import Index from '../view/index.vue';
import Cate from '../view/cate.vue'
import Ord from '../view/ordd.vue'
import Myme from '../view/myme.vue'
Vue.use(Router)
const router = [
    {
        path: '/',
        redirect: "/index"
    },
    {
        path: '/index',
        component:Index
    },
    {
        path: '/cate',
        component:Cate
    },
    {
        path: '/ordd',
        component:Ord
    },
    {
        path: '/myme',
        component:Myme
    }
]
const routes = new Router({ 
    routes:router   //上边的
})
export default routes